{% extends "base.html" %}

{% block content %}
<div class="container">
    <div class="row mb-4">
        <div class="col-12 text-center">
            <h1 class="display-4">欢迎使用配送管理系统</h1>
            <p class="lead">高效、安全、专业的配送管理解决方案</p>
        </div>
    </div>

    <div class="row g-4">
        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="fas fa-users fa-3x text-primary mb-3"></i>
                    <h5 class="card-title">用户管理</h5>
                    <p class="card-text">管理系统用户，包括科研人员、物流人员、财务人员等</p>
                    <a href="{{ url_for('user.user_list') }}" class="btn btn-primary">
                        <i class="fas fa-arrow-right"></i> 进入管理
                    </a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="fas fa-shipping-fast fa-3x text-success mb-3"></i>
                    <h5 class="card-title">订单处理</h5>
                    <p class="card-text">处理配送订单，跟踪订单状态，管理订单流程</p>
                    <a href="{{ url_for('order.order_list') }}" class="btn btn-success">
                        <i class="fas fa-arrow-right"></i> 进入管理
                    </a>
                </div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="card h-100">
                <div class="card-body text-center">
                    <i class="fas fa-warehouse fa-3x text-info mb-3"></i>
                    <h5 class="card-title">仓储管理</h5>
                    <p class="card-text">管理仓储设施，监控库存状态，优化存储方案</p>
                    <a href="{{ url_for('storage.warehouse_list') }}" class="btn btn-info">
                        <i class="fas fa-arrow-right"></i> 进入管理
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div class="row mt-4">
        <div class="col-12">
            <div class="card">
                <div class="card-body">
                    <h5 class="card-title">系统概况</h5>
                    <div class="row g-4 text-center">
                        <div class="col-md-3">
                            <div class="border-end">
                                <h3 class="text-primary">{{ user_count }}</h3>
                                <p class="text-muted">注册用户</p>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="border-end">
                                <h3 class="text-success">0</h3>
                                <p class="text-muted">今日订单</p>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="border-end">
                                <h3 class="text-info">0</h3>
                                <p class="text-muted">配送中</p>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <h3 class="text-warning">0</h3>
                            <p class="text-muted">待处理</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 